// function User(){}

// User.prototype = {age:'liu2'}
// const user = new User();
// user.__proto__ = {name:'liu'}
// console.log(user,user.name,user.age)

class User{
    name: string
}

User.prototype.name = "liuzhiwei"
const user = new User()
console.log(user,user.name)